from histogram import HistogramCollection, Histogram1D, Histogram2D

hcoll = HistogramCollection(
    [Histogram2D(name='pr_kpi_v_dm_pik_kpi',
                 nbins=(200,200),
                 aranges=((-1, 1), (-1, 1)),
                 xlabel=r'$|p|$ ratio for $K^+\pi^-$',
                 ylabel=r'$\delta M\left[K^-\pi^+-K^+\pi^-\right]$',
                 title=r'$\delta M$ vs $p(K^+\pi^-)$ ratio',
                 xunits='',
                 yunits='GeV',
                 ),
     Histogram2D(name='pr_pik_v_dm_pik_kpi',
                 nbins=(200,200),
                 aranges=((-1, 1), (-1, 1)),
                 xlabel=r'$|p|$ ratio for $K^-\pi^+$',
                 ylabel=r'$\delta M\left[K^-\pi^+-K^+\pi^-\right]$',
                 title=r'$\delta M$ vs $p(K^-\pi^+)$ ratio',
                 xunits='',
                 yunits='GeV',
                 ),
     Histogram1D(name='p_kp',
                 nbins=500,
                 arange=(0, 5),
                 xlabel=r'$|p_{K^+}|$',
                 xunits='GeV',
                 ),
     Histogram1D(name='p_km',
                 nbins=500,
                 arange=(0, 5),
                 xlabel=r'$|p_{K^-}|$',
                 xunits='GeV',
                 ),
     Histogram1D(name='p_pip',
                 nbins=500,
                 arange=(0, 5),
                 xlabel=r'$|p_{\pi^+}|$',
                 xunits='GeV',
                 ),
     Histogram1D(name='p_pim',
                 nbins=500,
                 arange=(0, 5),
                 xlabel=r'$|p_{\pi^-}|$',
                 xunits='GeV',
                 ),
     Histogram1D(name='p_slow',
                 nbins=200,
                 arange=(0, 0.6),
                 xlabel=r'$|p_{slow}|$',
                 xunits='GeV',
                 ),
     Histogram1D(name='dm_pik_kpi',
                 nbins=200,
                 arange=(-1, 1),
                 xlabel=r'$M(K^-\pi^+) - M(K^+\pi^-)$',
                 xunits='GeV',
                 ),
     ])

